package ch4;

//轮船
public class Ship {
    double load, displacement, speed;

    public void show(double l, double d, double s) {
        this.load = l;
        this.displacement = d;
        this.speed = s;
    }

    public String nature() {
        return "载重" + load + "吨,排水量" + displacement + "吨，最大航速" + speed + "节";
    }

    public String start() {
        return "启航";
    }

    public String siren() {
        return "鸣笛";
    }

    public String anchor() {
        return "抛锚";
    }
}
